package com.muyu.system.domain;


import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 购物车订单对象 danmo_shopping_order_cart_details
 *
 * @author kunzong
 * @date 2024-12-13
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class DanmoShoppingOrderCartDetails extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 购物车订单表唯一标识
     */
    private Long id;

    /**
     * 订单表ID
     */
    @Excel(name = "订单表ID")
    private Long shoppingOrderId;

    /**
     * 商品ID
     */
    @Excel(name = "商品ID")
    private Long productId;

    /**
     * 商品规格ID
     */
    @Excel(name = "商品规格ID")
    private Long productSpecifications;

    /**
     * 用户ID
     */
    @Excel(name = "用户ID")
    private Long userId;

    /**
     * 商品数量
     */
    @Excel(name = "商品数量")
    private Long quantity;

    /**
     * 单价
     */
    @Excel(name = "单价")
    private BigDecimal unitPrice;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId()).append("shoppingOrderId", getShoppingOrderId()).append("productId", getProductId()).append("productSpecifications", getProductSpecifications()).append("userId", getUserId()).append("quantity", getQuantity()).append("unitPrice", getUnitPrice()).toString();
    }
}
